<%--
  Created by IntelliJ IDEA.
  User: outenmon
  Date: 2024/11/3
  Time: 21:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div style="border: black; border: double;">
    模拟空指针异常测试事务回滚：
    <form action="addPractice" method="post">
        <table>
            <tr>
                <td>编号:</td>
                <td>
                    <input type="text" name="ids">
                </td>
            </tr>
            <tr>
                <td>姓名:</td>
                <td>
                    <input type="text" name="name">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="submit" value="提交">
                </td>
            </tr>
        </table>
    </form>
</div>

<div style="border: black; border: double;">
    手动抛异常测试事务回滚：
    <form action="manualThrowTest" method="post">
        <table>
            <tr>
                <td>编号:</td>
                <td>
                    <input type="text" name="ids">
                </td>
            </tr>
            <tr>
                <td>姓名:</td>
                <td>
                    <input type="text" name="name">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="submit" value="提交">
                </td>
            </tr>
        </table>
    </form>
</div>

<div style="border: black; border: double;">
    线程测试：
    <form action="threadTest" method="post">
        <table>
            <tr>
                <td>编号:</td>
                <td>
                    <input type="text" name="ids">
                </td>
            </tr>
            <tr>
                <td>姓名:</td>
                <td>
                    <input type="text" name="name">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="submit" value="提交">
                </td>
            </tr>
        </table>
    </form>
</div>

<div style="border: black; border: double;">
    捕捉线程内部异常：
    <form action="threadExceptionTest" method="post">
        <table>
            <tr>
                <td>编号:</td>
                <td>
                    <input type="text" name="ids">
                </td>
            </tr>
            <tr>
                <td>姓名:</td>
                <td>
                    <input type="text" name="name">
                </td>
            </tr>
            <tr>
                <td>
                    <input type="submit" value="提交">
                </td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>
